<!DOCTYPE html>
<html>
<head>
    <% include ../common/meta.ejs %>
    <% include ../common/public.ejs %>
</head>
<body>
<% include ../common/header.ejs %>
<div class="container">
    <div class="dolphin-row main page-content">
        <div class="page-header">
            <h5 class="content-title">券生成发放管理</h5>
            <input id="publicContextPath" type="hidden" value="<%= global.config.contextPath%>" />
            <div class="pull-left">
                <ul class="fl">
                    <li>
                        <button class="btn btn-block btn-info patchGenerate"><i class="fui-plus-circle icon-menu"></i>
                            <span>批量生成</span>
                        </button>
                    </li>
                    <li>
                        <button class="btn btn-block btn-info newData"><i class="fui-plus-circle icon-menu"></i>
                            <span>批量发放</span>
                        </button>
                    </li>
                </ul>
            </div>
        </div>

        <div class="queryCondition">
            <form class="query-form">
                <div class="row">
                    <div class="col-md-3">
                        <label>会员名称：</label>
                        <input type="text" placeholder="名称模糊查询" name="name_like">
                    </div>
                    <div class="col-md-3">
                        <label>联系手机：</label>
                        <input type="text" placeholder="手机号模糊查询" name="phone_like">
                    </div>
                    <div class="col-md-5">
                        <label>关注时间 ：</label>
                        <input type="text" class="width3" name="_startDate" placeholder="yyyy-MM-dd">
                        ~
                        <input type="text" class="width3" name="_endDate" placeholder="yyyy-MM-dd">
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-2">
                        <button class="btn btn-sm btn-inverse btn-query" type="button">搜索</button>
                    </div>
                </div>
            </form>
        </div>

        <div id="dataList" class="box-content"></div>
    </div>
</div>

<!--生成券-->
<div class="modal fade" id="couponModelModal" tabindex="-1" role="dialog" aria-labelledby="couponModelModalLabel">
    <div class="modal-dialog" role="document" style="left: 12%;top: 0;width: 80%;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                <span class="modal-title">生成券</span>
            </div>
            <div class="modal-body">
                <div class="queryCondition">
                    <form class="query-coupon-form">
                        <div class="row">
                            <div class="col-md-10">
                                <label>券类型名称：</label>
                                <input type="text" placeholder="支持模糊查询" name="name_like">
                                <button class="btn btn-sm btn-inverse btn-query" id="queryCouponModel" type="button">查询</button>
                            </div>

                        </div>
                    </form>
                </div>
                <div id="couponModelList" class="box-content"></div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary confirmCouponModel">确定</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>

<% include ../common/footer.ejs %>
</body>
</html>
